package com.company;

public class SalariedEmployee extends Employee{
    private int monthSalary;

    @Override
    public int getSalary(int month) {
        // ?固定工资
        int birthMonthAdd = super.getSalary(month);// 获取生日加工资

        return this.monthSalary+birthMonthAdd;
    }

    public int getMonthSalary() {
        return monthSalary;
    }


    public void setMonthSalary(int monthSalary) {
        this.monthSalary = monthSalary;
    }
}
